{extend name="layout_modal" /}
{block name="content"}
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <form role="form" action="{:url('data_save')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">上级分类</label>
          <input type="text" class="form-control" value="{$pname}" readonly>
          <input type="hidden" name="pid" value="{$pid}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">全称</label>
          <input type="text" class="form-control" placeholder="全称" name="fullname">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">首字母</label>
          <input type="text" class="form-control" placeholder="首字母" name="initial">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">图片</label>
            <div class="input-group input-group-sm">
                <input type="text" class="form-control" name="thumb" id="thumb_text">
                <span class="input-group-btn">
                    <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
                </span>
            </div>
            <div id="queue_thumb"></div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">销售状态</label>
          <select class="form-control" name="salestate">
            <option value="">请选择</option>
            <option value="待销">待销</option>
            <option value="在销">在销</option>
            <option value="停销">停销</option>
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">提示</label>
          <input type="text" class="form-control" value="" name="tip" placeholder="提示">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">排序</label>
          <input type="text" class="form-control" placeholder="排序" name="listorder" value="">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否推荐</label>
          <div>
            <label><input type="radio" name="isrecom" value="1"> 推荐</label>
            <label><input type="radio" name="isrecom" value="0" checked>不推荐</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否热销</label>
          <div>
            <label><input type="radio" name="ishot" value="1"> 热销</label>
            <label><input type="radio" name="ishot" value="0" checked>不热销</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否隐藏</label>
          <div>
            <label><input type="radio" name="hide" value="0" checked> 显示</label>
            <label><input type="radio" name="hide" value="1">隐藏</label>
          </div>
        </div>
      </div>
    </form>
  </div>
</div>
</section>
{/block}